home *** CD-ROM | disk | FTP | other *** search
- 0 rem << cd41-7 >>
- 1 rem ==================================
- 2 rem commodares problem #37-3 :
- 3 print"[147]power product"
- 4 rem solution by
- 5 rem j. alan kehr
- 6 rem ==================================
- 10 e=1000 : f=100 : g=10
- 20 for a=0to9 : for b=0to9 : for c=0to9: for d=0to9
- 30 h=e*a+f*b+g*c+d
- 40 i=int(a^b*c^d)
- 50 if h=i then print i
- 60 next : next : next : next
-